package com.ruoyi.jr.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.jr.domain.JrProduct;
import com.ruoyi.jr.domain.JrRentInstallment;
import com.ruoyi.jr.domain.JrRentInstallmentResponseDto;
import com.ruoyi.jr.domain.JrRentInstallmentSearchPage;
import com.ruoyi.jr.mapper.JrRentInstallmentMapper;
import com.ruoyi.jr.service.JrRentInstallmentService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 29124
* @description 针对表【t_jr_rent_installment(房租分期申请)】的数据库操作Service实现
* @createDate 2023-05-09 11:00:49
*/
@Service
public class JrRentInstallmentServiceImpl extends ServiceImpl<JrRentInstallmentMapper, JrRentInstallment>
    implements JrRentInstallmentService{


    @Override
    public IPage<JrProduct> selectPageVo(Page page, JrRentInstallmentSearchPage searchPage) {
        return baseMapper.selectPageVo(page,searchPage);
    }


    @Override
    public List<JrRentInstallmentResponseDto> searchLoans(JrRentInstallmentSearchPage jrRentInstallmentSearchPage) {
        return baseMapper.searchJrRentInstallmentPage(jrRentInstallmentSearchPage);
    }
}




